import {
	apiapi
} from "./request.js"

export const login = (data) => apiapi(
	'apim.php?_=User::login',
	'POST',
	data,
);
//获取验证码
export const getSms = (data) => apiapi(
	'apim.php?_=User::sms',
	'POST',
	data,
);
export const loginPhone = (data) => apiapi(
	'apim.php?_=User::login_phone',
	'POST',
	data,
);
export const loginOut = () => apiapi(
	'apim.php?_=User::logout',
	'POST',
);
export const getLogo = () => apiapi(
	'apim.php?_=OpenApi::sys_config',
	'POST',
);
//修改密码
export const editPasswd = (data) => apiapi(
	'apim.php?_=Worker::edit_passwd',
	'POST',
	data
);
//注销账户
export const delAccount = (data) => apiapi(
	'apim.php?_=Worker::del',
	'POST',
	data
);
